package br.ufrj.cos.bri;

import java.io.Serializable;


public class AssociatedDocument implements Comparable, Serializable{

	private String docRecordNumber;
	private int hits;
	private double tf_idf;
	private double relevanceRanking;
	
	public AssociatedDocument(String docRecordNumber, int hits){
		this.docRecordNumber = docRecordNumber;
		this.hits = hits;
		tf_idf = 0;
		relevanceRanking = 0;
	}

	public String getDocRecordNumber() {
		return docRecordNumber;
	}

	public void setDocRecordNumber(String docRecordNumber) {
		this.docRecordNumber = docRecordNumber;
	}

	public int getHits() {
		return hits;
	}

	public void setHits(int hits) {
		this.hits = hits;
	}
	
	public double getRelevanceRanking() {
		return relevanceRanking;
	}

	public void setRelevanceRanking(double relevanceRanking) {
		this.relevanceRanking = relevanceRanking;
	}

	public double getTf_idf() {
		return tf_idf;
	}

	public void setTf_idf(double tf_idf) {
		this.tf_idf = tf_idf;
	}
	
	public void addTf_idf(double tf_idf) {
		this.tf_idf += tf_idf;
	}
	
	public int compareTo(Object arg0) {
		return this.docRecordNumber.compareTo(((AssociatedDocument)arg0).getDocRecordNumber());
	}
	
}